package com.logback.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/**
 * @Author zqf
 * @Date 2023/3/20 17:38
 * @Description:
 */
public class logbackTest {

    private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(logbackTest.class);

    public static void main(String[] args) throws InterruptedException {

//
//        LOGGER.info("INFO");
//        LOGGER.debug("DEBUG");
//        LOGGER.warn("WARM");

        String flag = "44";
        Thread t1=new Thread(()->{
            System.out.println(flag.hashCode());
            Integer s = flag.hashCode() % 100;
            System.out.println("s = " + s);
        });
        Thread t2=new Thread(()->{
            System.out.println(flag.hashCode());
            Integer s = flag.hashCode() % 100;
            System.out.println("s = " + s);
        });
        t1.start();
        t2.start();
        TimeUnit.SECONDS.sleep(30);




    }
}
